@tree-prefix-cls: ~'@{namespace}-tree';

.@{tree-prefix-cls} {
  // background-color: @component-background;

  .ant-tree {
    background-color: #f2f5f8;

    // .ant-tree-node-selected {
    //   margin-right: 10px;
    //   border-radius: 2px;
    //   background: rgb(0 103 204 / 10%);
    // }

    // .ant-tree-node-selected:hover {
    //   margin-right: 10px;
    //   background-color: rgb(4 23 58);
    // }

    .ant-tree-checkbox {
      margin-block-start: 0;
      margin-inline: 4px 4px;

      & + span {
        padding-left: 4px;
      }

      .ant-tree-checkbox-inner {
        width: 14px;
        height: 14px;
      }

      &.ant-tree-checkbox-checked {
        .ant-tree-checkbox-inner {
          &::after {
            left: 2px;
          }
        }
      }
    }
  }

  .ant-tree-node-content-wrapper {
    position: relative;
    height: 28px;

    .ant-tree-title {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  .ant-tree-node-selected {
    .@{tree-prefix-cls}__actions {
      background: #0067cc !important;
    }
  }

  &__title {
    display: flex;
    position: relative;
    place-items: center center;
    width: 100%;
    padding-right: 10px;
    font-size: 12px;
    line-height: 28px;

    &:hover {
      .@{tree-prefix-cls}__actions {
        border-radius: 2px;
        background: #e7e9ed;
        box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.15);
      }
      .@{tree-prefix-cls}__action {
        visibility: visible;
      }
    }
  }

  &__content {
    overflow: hidden;
  }

  &__actions {
    display: flex;
    position: absolute;
    //top: 2px;
    right: 3px;
  }

  &__action {
    visibility: hidden;
    margin-left: 4px;
  }

  // &-header {
  //   border-bottom: 1px solid @border-color-base;
  // }
}
